g05cbf

g05cbf © Numerical Algorithms Group, 2002.

Purpose

G05CBF Initialise random number generating routines to give repeatable sequence

Synopsis

g05cbf(i)

Description

 
 This routine sets the internal seed used by the basic generator 
 (see G05CAF) to a value n  calculated from the parameter i:
                          0                                
 
                             n =2i+1.
                              0
 
 It then generates the value n  and discards it.
                              1              
 
 This routine will yield different subsequent sequences of random 
 numbers if called with different values of i, but the sequences 
 will be repeatable in different runs of the calling program. It 
 should be noted that there is no guarantee of statistical 
 properties between sequences, only within sequences.
 

Parameters

g05cbf

Required Input Arguments:

i                                     integer